Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(security): add nightly run of govulncheck with continue-on-error: false #2792

Merged
merged 2 commits into from
Mar 27, 2024

Conversation

hairyhum
Copy link
Contributor

@hairyhum hairyhum commented Mar 27, 2024

Change Overview

Add nightly trigger to govulncheck

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

Test Plan

Make sure action run on PR has continue-on-error: true
Check action run nightly after merge

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

Copy link
Contributor

@julio-lopez julio-lopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seem to be overloading the 'dependency review' workflow.

The dependency review workflow is meant to be run on PRs. AFAIK, it only makes sense to run actions/dependency-review-action in PRs, or anything that results in changing the dependencies, but a PR workflow would be the gate for that.

It may make sense to split this into 2 separate workflows in either of the following ways (there may be others)

  • [probably preferred] Either have a separate workflow for the nightly job that only runs govuln and have the name of the workflow reflect that is a nightly.
  • Or maybe include govuln in one of the existing periodic/nightly workflows.
  • Alternatively, have a separate workflow for govuln only, that runs both on PRs and nightly as well.

@hairyhum hairyhum force-pushed the nightly-govulncheck branch from 21df581 to 054194c Compare March 27, 2024 19:00
@hairyhum
Copy link
Contributor Author

Alternatively, have a separate workflow for govuln only, that runs both on PRs and nightly as well.

Right. This makes more sense. Moved govulncheck to a separate workflow.

@hairyhum hairyhum requested a review from julio-lopez March 27, 2024 19:01
continue-on-error: ${{ github.event_name == 'pull_request' }}
with:
repo-checkout: false
cache: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a newline

Suggested change
cache: false
cache: false

on:
## Nightly
schedule:
- cron: '0 0 * * *'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is UTC IIUC.
It may be a good idea to add some fudge factor here. It does not necessarily need to run exactly at midnight UTC.

Copy link
Contributor Author

@hairyhum hairyhum Mar 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be anything. 00:00 UTC is as good a time as any. But I can change it to 1:42 if you want.

Copy link
Contributor

@julio-lopez julio-lopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments can be addressed separately

@hairyhum hairyhum force-pushed the nightly-govulncheck branch from 054194c to e689170 Compare March 27, 2024 22:43
@hairyhum hairyhum merged commit 6d89a8f into master Mar 27, 2024
13 checks passed
@hairyhum hairyhum deleted the nightly-govulncheck branch March 27, 2024 23:01
mabhi pushed a commit that referenced this pull request Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Nightly runs for govulncheck
2 participants